[ Mega Script Archive ] [ Frequently Asked Questions ]

What does Error 501 "Cannot POST to non-script area..." mean?

  • Short Answer:

    You probably are not using a valid cgi-bin or have not correctly renamed .pl files to .cgi as is required on your system.

    Long Answer:

    There are two different ways that CGI scripts are most commonly configured to run on most systems. The first requires that scripts must be placed in a valid cgi-bin for them to work. Error 501 usually says that the server does not support the method POST to a non script area at this time. This means that since you do not have your files in a server defined cgi-bin, the server will not allow the POST method to these files, and will not execute these scripts.

    Another solution is that your web provider has turned on ExecCGI, allowing any file in your directory with a .cgi extension to be executed. Try renaming your .pl files to .cgi.

    More Information: If all else fails and you are still getting this error, write your system administrator and ask if you can place these scripts in a cgi-bin directory or if you can have permission to execute CGI scripts.


[ Mega Script Archive ]